﻿using System;
using System.Collections.Generic;

namespace OnlineTest.UC
{
    public partial class UITestRadio : UCTest
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        public override object GetData()
        {
            return rbList.SelectedValue;
        }

        public override bool LoadData(object data)
        {
            List<string> lData = (List<string>) data;
            rbList.Items.Clear();
            foreach (string s in lData)
            {
                rbList.Items.Add(s);
            }
            return true;
        }
    }
}